#include "stdafx.h"
#include "mystery_room_layer.h"
#include "../common/tiles_pool.h"
#include "game_engine/director.h"
extern HGE* hge;

CMysteryLayer::CMysteryLayer()
{
    m_bgSprite = tiles_pool::Instance().get(10);
}

CMysteryLayer::~CMysteryLayer()
{
}

void CMysteryLayer::Update()
{
    if (hge->Input_GetKeyState(HGEK_ESCAPE))
    {
        CDirector::getInstance()->EndScene();
    }

}

void CMysteryLayer::Render()
{
    if (m_bgSprite != NULL)
    { 
        m_bgSprite->Render(0.0f, 0.0f);
    }
}